import random
import string

number = input("您想要多少激活码：")
lenth = 32
def func1():
    for i in range(int(number)):
        if number.isdigit():
            ran_str = ''.join(random.sample(string.ascii_letters + string.digits, 32))
            print(ran_str)
        else:
            print("请输入数字")

func1()
